From: Paul Eggert Date: Thu, 28 Apr 2011 20:11:17 +0000 (-0700) Subject: * doprnt.c (SIZE_MAX): Move defn after all includes, as they might #define it. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~3999^2~3 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1d180d08af0ef5b057e19627c602e3822c0a0328;p=emacs.git * doprnt.c (SIZE_MAX): Move defn after all includes, as they might #define it. --- diff --git a/src/ChangeLog b/src/ChangeLog index 90d2d80f483..fb37ecbca20 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,7 @@ 2011-04-28 Paul Eggert * doprnt.c (doprnt): Omit useless test; int overflow check (Bug#8545). + (SIZE_MAX): Move defn after all includes, as they might #define it. 2011-04-28 Juanma Barranquero diff --git a/src/doprnt.c b/src/doprnt.c index eac1796c496..db0b66c3aa2 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -111,9 +111,6 @@ along with GNU Emacs. If not, see . */ #include #include -#ifndef SIZE_MAX -# define SIZE_MAX ((size_t) -1) -#endif #include "lisp.h" @@ -122,6 +119,10 @@ along with GNU Emacs. If not, see . */ another macro. */ #include "character.h" +#ifndef SIZE_MAX +# define SIZE_MAX ((size_t) -1) +#endif + #ifndef DBL_MAX_10_EXP #define DBL_MAX_10_EXP 308 /* IEEE double */ #endif